﻿using System.Web.Mvc;
using Serenity.Utility;

namespace Serenity.Libra.Web.Controllers
{
    public class UtilityController : Controller
    {

        [HttpGet]
        public ActionResult GetCode(int cl, int el, string prefix, int count)
        {
            var code = CodeHelper.GenerateCode(cl, el, prefix, count);
            return Json(code.ToUpper(), JsonRequestBehavior.AllowGet);
        }
    }
}